// use std::time::SystemTime;

use chrono::{DateTime, NaiveDateTime, Utc};

/// Gets current system time.
// pub fn get_current_system_time() -> SystemTime {
//     SystemTime::now()
// }

pub fn from_timestamp_to_utc_string(timestamp: i64) -> String {
    DateTime::from_timestamp(timestamp, 0).unwrap().to_rfc3339()
}

pub fn get_current_utc_time() -> DateTime<Utc> {
    Utc::now()
}

pub fn get_timestamp() -> i64 {
    Utc::now().timestamp()
}

pub fn get_current_naive_date_time() -> NaiveDateTime {
    get_current_utc_time().naive_utc()
}
